//
//  KBYearMoonDayTools.m
//  喜马拉雅改良版框架
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "KBYearMoonDayTools.h"

@implementation KBYearMoonDayTools

+ (NSString *)timestampExchange:(NSInteger)time
{
    NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
    [formatter setDateStyle:NSDateFormatterMediumStyle];
    [formatter setTimeStyle:NSDateFormatterShortStyle];
    [formatter setDateFormat:@"YYYY-MM-dd"];
    NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:time];
    NSString *confromTimespStr = [formatter stringFromDate:confromTimesp];
    return confromTimespStr;
}

@end
